const Service = require('egg').Service;
class EsService extends Service {
  async find(uid) {
    const { ctx } = this;
    const es_test = await ctx.elasticsearch.search({
      index: 'es_test',
    });
    return {
      code: 0,
      msg: '查询成功',
      data: es_test,
    };
  }
}
